package com.wkm.chainchain.consensusutils;


import com.wkm.chainchain.pbft.node.AllNodeInfo;

public class PBFTVerify {

    /**
     * 验证该消息的context与digest是否一致
     *
     * @param index
     * @param digest
     * @param context
     * @return
     */
    public static boolean verify(int index, String digest, String context) {
        return RSAUtils.verify(digest, context, AllNodeInfo.P2P_NODE_ARRAYS[index].getPublicKey());
    }
}
